[PATCH 1/6] common: Disable enum type stream operators for Qt >= 5.14
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 7 Jan 2020 17:34:54 +0000 (18:34 +0100)
committerFelix Geyer <fgeyer@debian.org>
Fri, 12 Feb 2021 17:40:17 +0000 (17:40 +0000)
commite38642601e3006e290e0b6644ed46565588b9ddf
tree930251e7eb6b6f0028c8e333a58815145e1bd73b
parent9ac8c1a38acaff8a27c9b411389778dcecf82c99
[PATCH 1/6] common: Disable enum type stream operators for Qt >= 5.14

From 579e559a6322209df7cd51c34801fecff5fe734b Mon Sep 17 00:00:00 2001
Bug: https://bugs.quassel-irc.org/issues/1544
Bug-Ubuntu: https://bugs.launchpad.net/quassel/+bug/1885436
Origin: upstream, https://github.com/quassel/quassel/pull/518
Origin: upstream, https://github.com/quassel/quassel/commit/579e559a6322209df7cd51c34801fecff5fe734b

Starting from version 5.14, Qt provides stream operators for enum
types, which collide with the ones we ship in types.h. Disable
Quassel's stream operators when compiling against Qt 5.14 or later.

Add a unit test that ensures that enum serialization honors the width
of the underlying type.

Gbp-Pq: Topic qt514
Gbp-Pq: Name 0001-common-Disable-enum-type-stream-operators-for-Qt-5.1.patch
src/common/types.h